package com.qf.j2205.dao;


import com.qf.j2205.entity.Screenings;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName ScreeningsMapper
 * @Description TODO
 * @Author Windy
 * @Date 2022/8/15 19:17
 * @Version 1.0
 **/
public interface ScreeningsMapper {

    /**
     * 添加一条新的场次信息
     * @param scre
     * @return
     */
    public int insertScreenings(Screenings scre);

    /**
     * 根据id查询一条数据
     * @param id
     * @return
     */
    public Screenings findOneById(int id);
    /**
     * 查询全部场次信息
     * @return
     */
    public List<Screenings> selectScreenings();

    /**
     * 根据id删除
     * @param id
     * @return
     */
    public int  deleteScreenings(int id);

    /**
     * 根据id审核
     * @param id
     * @return
     */
    public int checkScreenings(int id);

    /**
     * 更新数据
     * @param screenings
     * @return
     */
    public int updateScreenings(Screenings screenings);


    /**
     * 根据开始时间和审核状态查询
     * @param time
     * @param isAudit
     * @return
     */
    public List<Screenings> selectTimeAndIsaudit(@Param("time") String time, @Param("isAudit") String isAudit);

    /**
     * 审核全部
     * @param det
     * @return
     */
    public int detectAll(List<Integer> det);
}
